package com.anxinr.enums;

import lombok.Getter;

/**
 * 异常枚举常量
 *
 * @author anxinr
 */
@Getter
public enum ExceptionEnum {
    /**异常枚举*/
    STUDY_LOGIC_ERROR(500,"服务异常"),
    STUDY_USER_NAME_ERROR(501,"账号不存在"),
    STUDY_LOGIN_ERROR(502,"账号或者密码错误"),
    STUDY_REPEAT_ERROR(503,"请勿重复提交！"),
    STUDY_UN_LOGIN_ERROR(504,"请登录！")
    ;
    /**异常常量*/
    public static final String ERROR_MASSAGE = "服务异常" ;
    public static final Integer ERROR_CODE = 500 ;

    /**异常信息*/
    private String massage ;
    /**异常code*/
    private Integer code ;

    ExceptionEnum(Integer code, String massage){
        this.massage = massage ;
        this.code = code ;
    }
    ExceptionEnum(String massage){
        this.massage = massage ;
    }
}
